{# incoming variables: sections (Array of Sections), currentSection (Section) #}
<ul id="mainMenu" class="x-mainmenu"> {#  needs x-mainmenu class to enable reloading menu after changes in sections pane #}
{% for section in sections %}
	{% if currentSection==section %}
		<li class="selected"><a href="{{ section.url }}">{{ section.name }}</a></li>
	{% else %}
		<li><a href="{{ section.url }}">{{ section.name }}</a></li>
	{% endif %}
{% endfor %}
</ul>